package com.rujue.qianzhi;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

import com.rujue.qianzhi.server.ThriftServer;

@SpringBootApplication
public class Application {
	private static Logger logger = LoggerFactory.getLogger(Application.class);

	public static void main(String[] args) {
		ApplicationContext app = SpringApplication.run(Application.class, args);
		try {
			ThriftServer thriftServer = app.getBean(ThriftServer.class);
			thriftServer.start();
			logger.info("=========【【【thrift服务启动成功.】】】=====");
		} catch (Exception e) {
			logger.error("扫码交易服务端启动失败, {}", e);
		}
	}

}
